part of '../index.dart';

class BuildLayout extends StatelessWidget {
  final Widget infoChild;
  final Widget operateChild;

  const BuildLayout({
    super.key,
    required this.infoChild,
    required this.operateChild,
  });

  @override
  Widget build(BuildContext context) {
    return Stack(
      fit: StackFit.expand,
      children: [
        SafeArea(
          minimum: const EdgeInsets.all(15),
          child: Column(
            mainAxisAlignment: MainAxisAlignment.center,
            crossAxisAlignment: CrossAxisAlignment.center,
            children: [
              Expanded(flex: 7, child: infoChild),
              Expanded(flex: 3, child: operateChild),
            ],
          ),
        ),
      ],
    );
  }
}
